:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #16a085;
    --background-color: #f5f7fa;
    --sidebar-color: #2c3e50;
    --text-color: #333;
    --light-text: #fff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--light-text);
    padding: 15px 0;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 240px;
    background-color: var(--sidebar-color);
    color: var(--light-text);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: var(--light-text);
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar ul li a.active {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

main {
    flex-grow: 1;
    padding: 30px;
    background-color: var(--background-color);
}

section {
    display: none;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.active-section {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

h2 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.upload-area {
    text-align: center;
    padding: 30px;
    margin: 20px 0;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: var(--border-radius);
    border: 2px dashed #cbd5e0;
    position: relative;
}

.upload-area.dragover {
    background-color: rgba(74, 144, 226, 0.1);
}

.upload-button {
    display: inline-block;
    padding: 20px 40px;
    background-color: #fff;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-button:hover {
    background-color: rgba(74, 144, 226, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.upload-button span {
    display: block;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.upload-button small {
    color: #666;
    font-size: 14px;
}

.parameter-settings {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.parameter-settings label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.parameter-settings input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
}

progress {
    width: 100%;
    height: 20px;
    margin-top: 10px;
}

.preview-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.preview-area .original,
.preview-area .enhanced {
    background-color: #fff;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.preview-area h3 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.preview-area img,
.preview-area video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.control-panel {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: var(--border-radius);
}

button {
    padding: 12px 25px;
    margin: 5px 10px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.2);
}

.result-area {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detection-info {
    background-color: #fff;
    padding: 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.detection-info h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

#detectionStats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#detectionStats p {
    margin: 5px 0;
    padding: 10px;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: 5px;
}

.occlusion-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scene-info {
    background-color: #fff;
    padding: 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.scene-info h3, .scene-info h4 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

#sceneStats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

#sceneStats p {
    margin: 5px 0;
    padding: 10px;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: 5px;
}

.timeline-container {
    position: relative;
    height: 40px;
    margin: 20px 0;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: var(--border-radius);
}

.timeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateY(-50%);
}

.timeline-markers {
    position: relative;
    height: 100%;
}

.scene-marker {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.scene-marker:hover::after {
    content: attr(data-time);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* 添加质量评价模块的样式 */
.evaluation-result {
    padding: 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
}

.score-card {
    text-align: center;
}

.overall-score {
    margin-bottom: 20px;
}

.overall-score h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.overall-score .score {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.detail-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.score-item {
    padding: 10px;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: var(--border-radius);
}

.score-item label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.score-item span {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: 500;
}

.evaluation-info {
    background-color: #fff;
    padding: 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.evaluation-info h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

#evaluationDetails p {
    margin: 10px 0;
    padding: 8px;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: 5px;
}

select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #fff;
}

/* 添加超分辨率重建模块的样式 */
.resolution-info {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: var(--border-radius);
}

.resolution-info p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--secondary-color);
}

.comparison-tool {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.comparison-view {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 15px 0;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

#comparisonImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: left;
    border-right: 2px solid var(--primary-color);
}

#comparisonRange {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
}

#comparisonRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

#comparisonRange::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
} 